<template>
    <div>
        <h1>我是孙组件</h1>
        <button @click="$emit('chuan',val)">点击传给爷爷</button>
    </div>
</template>
<script>
export default {
    data() {
        return {
            val:"小新"
        }
    },
    methods: {
        
    },
}
</script>